{{assign var="title" value="管理员列表"}}
{{include file="admin/intop.html"}}
<script type="text/javascript">
var closeListerner = function(){ window.location.reload(); }
function add(){
    showDialog("admin.php?ctl=sysmenu&act=funsadd&id={{$menuid}}",420,280,"添加功能", true, closeListerner);
}
function edit(id){
    showDialog("admin.php?ctl=sysmenu&act=funsedit&id="+id,420,280,"修改功能", false, closeListerner);
}
</script>
<div class="toolsBar">
    <input type="button" value="添加功能" onclick="add()" class="button_style">
    <a href="admin.php?ctl=sysmenu" class="button_style">返回菜单管理</a>
</div>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="table_list">
    <tr>
        <th>ID</th>
        <th>标题</th>
        <th>分类</th>
        <th>功能</th>
        <th>排序</th>
        <th>操作</th>
    </tr>
    {{foreach from=$res item=item}}
    <tr>
        <td>{{$item.ID}}</td>
        <td class="lf">{{$item.NAME}}</td>
        <td>{{$item.CTL}}</td>
        <td>{{$item.ACT}}</td>
        <td>{{$item.ORDER_NUM}}</td>
        <td>
           <a id="GridView1_ctl02_hlkEdit" href="javascript:edit({{$item.ID}})">修改</a> | 
           <a id="GridView1_ctl02_hlkDel" href="admin.php?ctl=sysmenu&act=funsdel&menuid={{$menuid}}&id={{$item.ID}}">删除</a>
        </td>
    </tr>
    {{/foreach}}
</table>
{{include file="admin/infoot.html"}}